/*
{% php %}

	$icons = array(
		
		"action_login",
		"action_revert",
		"action_search",
		"action_clear_selection",
		"action_clear_checked",
		array("action_add"),
		"action_edit",
		"action_edit_small",
		"action_log",
		"action_ok",
		"action_check",
		"action_apply",
		array("action_run","action_open"),
		array("action_cancel", "action_delete"),
		"action_clone",
		"action_info",
		"action_filter",
		"action_save",
		"action_preview",
		"action_upload",
		"action_open_new_window",
		"action_unlock",
		"action_lock",
		"action_refresh",
		"action_reset",
		"action_replace",
		"action_compile",
		"action_download",
		"action_comment",
		"action_summary",
		"action_expand",
		"action_collapse",
		
		"action_remove_from_right_side",
		"action_remove_from_left_side",
		"action_add_to_right_side",
		"action_add_to_left_side",
				
		"e_device",
		"e_selection_32",
				
		"arrow_down",
		"arrow_up",
		"arrow_to_down",
		"arrow_to_up",
		"arrow_to_left_side",
		"arrow_to_right_side",
		"arrow_to_bottom_side",
		
		"information",
		"information_small",
		"lock",
		"key",
		"home",
		"navigation",
		"exclamation",
		"exclamation_32",
		"attributes",
		"rocket",
		"hourglass",
		"on",
		"off",
		"yes",
		"no",
		"stub",
				
		"step_1",
		"step_2",
		"step_3",
		"step_4",
		"step_5",
		"step_6",
		"step_7",
		"step_8",
		"step_9",
		
		"property",
		"property_title",
		"property_url",
		"property_description",
		"property_image",
		"property_sort",
		"property_price",
		"property_percent",
		"property_date",
		"property_login",
		"property_password",
		"property_active",
		
	);
	
	$icons_a = array();
	
	foreach( $icons as $_icon ) {
	
		if( is_string($_icon) ) {
			
			$_icon_file = $_icon; 
			$_icon_css = ".icon_{$_icon}"; 
			
		} else if( is_array($_icon) ) {
		
			$_icon_file = $_icon[0];
			
			$_icon_css = array();
			
			foreach( $_icon as $_icon_cls ) {
				$_icon_css[] = ".icon_{$_icon_cls}"; }
				
			$_icon_css = implode(", ", $_icon_css);
			
		}	# if
	
		$_file = realpath($this->get_template_vars("path_web") . "/icon/" . $_icon_file . ".png");
		
		if( !$_file ) { 
			$_file = realpath($this->get_template_vars("path_web") . "/icon/" . $_icon_file . ".gif"); }
		
		if( $_file  ) { 
			$icons_a[$_icon_css] = base64_encode(file_get_contents($_file)); }
	
	}	# foreach
	
	$this->assign("icons", $icons_a);

{% /php %}
*/

/* 
{% foreach from=$icons key=_icon_css item=_icon_src %}
{% if is_string($_icon_src) %}
*/
{% $_icon_css %} {
	background-image: url(data:image/png;base64,{% $_icon_src %}) !important;
	background-repeat: no-repeat;
}
/* 
{% /if %} 
{% /foreach %} 
*/

.icon_, .icon_action_, .icon_action_txt_ {
	width: 16px; height: 16px;
	min-width: 16px; min-height: 16px;
	background-position: center;
}

.icon_24 {
	width: 24px; height: 24px;
	background-position: center;
}

.icon_32 {
	width: 32px; height: 32px;
	background-position: center;
}

.icon_64 {
	width: 64px !important; height: 64px !important;
	background-position: center;
}

.icon_frame {
	padding: 5px;
	border: 1px solid #CCCCCC;
	background-color: #FFFFFF;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

span.icon_frame {
	display: inline-block;
}

.x-btn-text.icon_action_remove_from_right_side,
.x-btn-text.icon_action_remove_from_left_side,
.x-btn-text.icon_action_add_to_right_side,
.x-btn-text.icon_action_add_to_left_side {
	width: 32px !important;
	height: 32px !important;
}

